# coding:utf-8
import urllib3
from BigDataWeb.algorithm import Algorithm
from urllib3 import PoolManager


class DataCollector(Algorithm):
    http = None
    df = None
    
    def __init__(self):
        Algorithm.__init__(self)
        urllib3.disable_warnings()
        self.http = PoolManager()
    
    def saveToExcle(self):
        # 保存结果excel文件
        self.df.to_excel(self.result_excel_path)
